package day6;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArrayTEst {
    public static void main(String[] args) {
        //填充
        double d[] = new double[10];
        Arrays.fill(d, 2.6);
        //toString
        String str = Arrays.toString(d);
        System.out.println(Arrays.toString(d));
        int[] a = {200, 23, 212, 414, 734, 374, 74, 42, 18, 56, 88, 32, 23, 22, 21};
        //Arrays.sort(a);
        //含头不含尾
        Arrays.sort(a, 2, 8);
        for (int i = 0; i < a.length; i++) {
            System.out.print("\t" + a[i]);
        }
    }
}
